//
//  FGShareView.m
//  Mi6App
//
//  Created by Mr.Lemon on 9/1/13.
//  Copyright (c) 2013 4G Secure. All rights reserved.
//

#import "FGShareView.h"

@implementation FGShareView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

- (IBAction)onBtnShareFacebookClick:(id)sender {
    [self.shareDelegate onShare:SHARE_FACEBOOK];
    [self removeFromSuperview];
}

- (IBAction)onBtnShareTwitterClick:(id)sender {
        [self.shareDelegate onShare:SHARE_TWITTER];
    [self removeFromSuperview];
}

- (IBAction)onBtnShareSMSClick:(id)sender {
        [self.shareDelegate onShare:SHARE_SMS];
    [self removeFromSuperview];
}

- (IBAction)onBtnCancelShareClick:(id)sender {
    [self removeFromSuperview];
}
@end
